<template>
    <view class="scan-code-prompt">
        <scan-code-prompt-page :row="form"></scan-code-prompt-page>
    </view>
</template>

<script>
// 引入背景页面组件
import ScanCodePromptPage from './components/page';

export default {
    name: 'ScanCodePrompt',
    components: {
        ScanCodePromptPage
    },
    onLoad(query) {
        let parms = {};
        Object.keys(query).map(key => {
            parms[key] = decodeURIComponent(query[key])
        });
        this.form = parms;
    },
    data() {
        return {
            form: {}
        }
    }
}
</script>

<style lang="scss" scoped>
.scan-code-prompt {
    height: 100vh;
}
</style>